import Layout from '@/layout'

const transferRouter = {
  path: '/transfer',
  component: Layout,
  redirect: '/transfer/transferManagement',
  name: 'transfer',
  meta: { roles: ['transferManagement'] , title: '运输信息管理',icon: 'el-icon-position'},
  children: [
    {
      path: 'purchase',
      component: () => import('@/views/transfer/transferManagement/purchase'),
      name: 'purchase',
      meta: {  title: '货物入库管理' }
    },
    {
      path: 'invoice',
      component: () => import('@/views/transfer/transferManagement/invoice'),
      name: 'invoice',
      meta: { title: '货物出库管理' }
    },
    {
      path: 'track',
      component: () => import('@/views/transfer/transferManagement/track'),
      name: 'track',
      meta: {title: '货物追踪管理' }
    }
  ]
}
export default transferRouter
